import request from '@/utils/request'

// 查询列表
export function list(query) {
  return request({
    url: '/teacher/evaluation/scheme/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function get(tetiId) {
  return request({
    url: '/teacher/evaluation/scheme/info/' + tetiId,
    method: 'get'
  })
}

// 查询部门下拉树结构
export function treeselect() {
  return request({
    url: '/sys/dept/treeselect',
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: '/teacher/evaluation/scheme/create',
    method: 'post',
    data: data
  })
}

// 修改
export function update(id,data) {
  return request({
    url: '/teacher/evaluation/scheme/update/' + id,
    method: 'put',
    data: data
  })
}

// 删除
export function del(ids) {
  return request({
    url: '/teacher/evaluation/scheme/deleteByIds/' + ids,
    method: 'delete'
  })
}
